Skip to content

fix(mcpx): changed_test_names whole-file ranges for untracked e2e files (#10874) - #10876

Merged
dezren39 merged 1 commit into
mainfrom
queue/17555-10874-changed-test-names-untracked
Nov 16, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/17555-10874-changed-test-names-untracked

Conversation

@dezren39

@dezren39 dezren39 commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

What

changed_test_names in pkgs/mcpx/scripts/affected-tests.py read a per-file zero-context git diff, which has no hunks for an untracked file — so tests in an untracked e2e file never entered the T2 prioritized segment and could be truncated away at the 15-test budget, while a staged identical file's tests were protected (PR #4398 residual, issue #10874).

  • changed_test_names now takes the selector's untracked set; an untracked e2e file is rendered as one whole-file added range, so every test in it counts as changed — exactly what the staged-new-file diff yields for identical content.
  • Tracked/staged paths are unchanged (same diff ranges, same zero-count deletion handling).

Tests

Oracle: staged-vs-untracked parity over a full T2 budget.

  • New regression test_changed_tests_untracked_parity_over_t2_budget in pkgs/mcpx/scripts/tests/test_affected_untracked.py: 18 tests defined in reverse name order in one new e2e file; staged and untracked runs must produce byte-identical selector output with the prioritized (file-order) truncation — TestZulu18 first, TestZulu04 last of 15.
  • The new test fails on the pre-fix selector (1 failure) and passes with the fix.
  • Full suite: python3 -m unittest discover -s pkgs/mcpx/scripts/tests — 30 tests, OK (laptop).

Closes #10874
Queue: task 17555 (lane code-b)


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 16, 2026 23:40
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T23:40:33.225853Z
We couldn’t complete this review. Comment @codex review to try again.
9904bcb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit 5c64e99 into main Nov 16, 2026
1 check failed
@dezren39
dezren39 deleted the queue/17555-10874-changed-test-names-untracked branch November 16, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant